import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import { LayoutIndex } from "@/routers/constant";

// 表单 Form 模块
const game = [
	{
		element: <LayoutIndex />,
		meta: {
			title: "游戏"
		},
		children: [
			{
				path: "/game/snake",
				element: lazyLoad(React.lazy(() => import("@/views/game/snake/index"))),
				meta: {
					requiresAuth: true,
					title: "贪吃蛇",
					key: "snake"
				}
			},
			// {
			// 	path: "/form/validateForm",
			// 	element: lazyLoad(React.lazy(() => import("@/views/form/validateForm/index"))),
			// 	meta: {
			// 		requiresAuth: true,
			// 		title: "校验 Form",
			// 		key: "validateForm"
			// 	}
			// },
		]
	}
];

export default game;
